package day08_Extends.demo12_extends;

public class Test {
    public static void main(String[] args) {
        Student zs = new Student("学生张三", 20);
        System.out.println(zs.getName());
        zs.est();
        zs.study();
        Teacher ls = new Teacher("老师李四", 46, 200);
        System.out.println(ls.getName());
        System.out.println(ls.getMoney());
        ls.est();
        ls.study();
    }
}
